<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>  
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">  
<html>  
  <head>  
    <title>${entityName}列表</title> 
    <%@ include file="../admin/head.jsp"%> 
	<script type="text/javascript" src="../resource/js/${entityNameSmall}/list.js?v=1"></script>
	
  </head>  
    
  <body>  
  	
  	<table id="dg" class="easyui-datagrid"
            data-options="rownumbers:true,singleSelect:false,pagination:true,pageSize:20,fitColumns:true,fit:true"
            toolbar="#toolbar">
       <thead>
           <tr>
        <#list dataList as var>	
        	<#if var.newColumn == "id">
        	   <th data-options="field:'id',checkbox:true"></th>
        	</#if>
        	<#if var.newColumn != "id">
        	   <th data-options="field:'${var.newColumn}',width:80,align:'center'">${var.comment}</th>
        	</#if>
        </#list>
           </tr>
       </thead>
    </table>
    <div id="toolbar" style="text-align:left;">
   		 <a href="#" id="toAdd" class="easyui-linkbutton" iconCls="icon-add" plain="true" onclick="toAdd()">新增</a>
   		 <a href="#" id="toEdit" class="easyui-linkbutton" iconCls="icon-edit" plain="true" onclick="toEdit()">修改</a>
   		 <a href="#" id="del" class="easyui-linkbutton" iconCls="icon-cut" plain="true" onclick="del()">删除</a>
   		 <a href="#" id="ext" class="easyui-linkbutton" iconCls="icon-redo" plain="true" onclick="ext()">导出</a>
   		 <a href="#" id="delAll" class="easyui-linkbutton" iconCls="icon-delAll" plain="true" onclick="delAll()">批量删除</a>
	 	 <input type="text" name="keyWord" id="keyWord" placeholder="输入搜索内容" style="margin-left: 10"/>
  		 <a href="#" class="easyui-linkbutton" iconCls="icon-search" plain="true" onClick="_search()">搜索</a>
  		 <a href="#" class="easyui-linkbutton" iconCls="icon-reload" plain="true" onClick="reset()">刷新</a>
    </div>
  	
  	
  	<!-- 表单窗口 -->
  	<div id="win" class="easyui-window" style="width:300px;height:250px"
    	data-options="modal:true,closed:true,collapsible:false,minimizable:false,maximizable:false">
    	<form id="fm">
    		<input type="hidden" name="id" id="id"/>
    		<table style="margin:15 auto;" cellspacing="5">
    		 <#list dataList as var>
    		 	<#if var.newColumn != "id">
    		 	<tr>
    				<td>${var.comment}：</td>
    				<td><input type="text" id="${var.newColumn}" name="${var.newColumn}" /></td>
    			</tr>
    			</#if>
    		 </#list>
    		</table>
    		<div style="text-align:center;">
		        <a href="javascript:void(0)" class="easyui-linkbutton c6" iconCls="icon-ok" onclick="save()" style="width:90px">保存</a>
		        <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-cancel" onclick="javascript:$('#win').window('close')" style="width:90px">取消</a>
		    </div>	
    	</form>
	</div>
  </body>  
</html>  